PROJECT( image-filters )
SET( SRCS
     main.cpp
     window.cpp
     imagewidget.cpp
     filter.cpp
     linearfilter.cpp
     medianfilter.cpp )
SET( MOC_HDRS
     window.h
     imagewidget.h )
ADD_DEFINITIONS( -Wall )
FIND_PACKAGE( Qt4 REQUIRED )
INCLUDE( ${QT_USE_FILE} )
QT4_WRAP_CPP( MOC_SRCS ${MOC_HDRS} )
ADD_EXECUTABLE( ${PROJECT_NAME} ${SRCS} ${MOC_SRCS} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${QT_LIBRARIES} )

ENABLE_TESTING()
ADD_TEST( run ${EXECUTABLE_OUTPUT_PATH}/${PROJECT_NAME} )
